package com.xuecheng.content.controller;

import com.xuecheng.api.content.TeachAndMedia;
import com.xuecheng.content.service.TeachplanMediaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author itcast
 */
@Slf4j
@RestController
public class TeachplanMediaController implements TeachAndMedia {

    @Autowired
    private TeachplanMediaService  teachplanMediaService;

    @Override
    @GetMapping("teachplanMedia/{mediaId}")
    public boolean teachplanMediaDTO(@PathVariable Long mediaId) {
        //调用service层
        return teachplanMediaService.teachplanMediaDTO(mediaId);
    }
}
